// DlgOption.cpp : implementation file
//

#include "stdafx.h"
#include "SinaBlog.h"
#include "DlgOption.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgOption dialog


CDlgOption::CDlgOption(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgOption::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgOption)
	m_bAutoRun = FALSE;
	m_bMiniWindow = FALSE;
	m_bAutoNotify = FALSE;
	m_bAutoCreateShortcut = FALSE;
	//}}AFX_DATA_INIT
}


void CDlgOption::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgOption)
	DDX_Control(pDX, IDC_CHECK_AUTOCREATESHORTCUT, m_checkAutoCreateShortcut);
	DDX_Control(pDX, IDC_CHECK_MINIWINDOW, m_checkMiniWindow);
	DDX_Control(pDX, IDC_CHECK_AUTORUN, m_checkAutoRun);
	DDX_Control(pDX, IDC_CHECK_AUTONOTIFY, m_checkAutoNotify);
	DDX_Control(pDX, IDCANCEL, m_btnCancel);
	DDX_Control(pDX, IDOK, m_btnOK);
	DDX_Check(pDX, IDC_CHECK_AUTORUN, m_bAutoRun);
	DDX_Check(pDX, IDC_CHECK_MINIWINDOW, m_bMiniWindow);
	DDX_Check(pDX, IDC_CHECK_AUTONOTIFY, m_bAutoNotify);
	DDX_Check(pDX, IDC_CHECK_AUTOCREATESHORTCUT, m_bAutoCreateShortcut);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgOption, CDialog)
	//{{AFX_MSG_MAP(CDlgOption)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgOption message handlers

BOOL CDlgOption::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_checkMiniWindow.SetBitmaps(IDB_CHECK,0,IDB_UNCHECK,0);m_checkMiniWindow.DrawBorder(FALSE);
	m_checkAutoRun.SetBitmaps(IDB_CHECK,0,IDB_UNCHECK,0);	m_checkAutoRun.DrawBorder(FALSE);
	m_checkAutoNotify.SetBitmaps(IDB_CHECK,0,IDB_UNCHECK,0);m_checkAutoNotify.DrawBorder(FALSE);
	m_checkAutoCreateShortcut.SetBitmaps(IDB_CHECK,0,IDB_UNCHECK,0);m_checkAutoCreateShortcut.DrawBorder(FALSE);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
